#include "OrientedGraph.h"

using namespace std;


OrientedGraph::OrientedGraph(): AbstractGraph()
{
	
}

OrientedGraph::~OrientedGraph()
{
	
}

OrientedGraph::OrientedGraph(const AbstractGraph& unoriented):AbstractGraph(unoriented)
{
	
}

OrientedGraph::OrientedGraph(const OrientedGraph& other): AbstractGraph(other)
{

}

void OrientedGraph::addEdge(int vertex, int vertex2)
{
   adgencyList[vertex].push_back(vertex2);
}


void OrientedGraph::delEdge(int vertex1, int vertex2)
{
  vector<int> vect = adgencyList[vertex1];


  int i = 0;
  while(i < vect.size())
    {
      if (vect[i] == vertex2)
	{
	  adgencyList[vertex1].erase(adgencyList[vertex1].begin() + i);
	  break;
	}
      ++i;
    }

}
